import '@/assets/scss/rescss.scss'
import '@/assets/scss/iconfont.scss'
import '@/assets/scss/global.scss'

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import axios from './libs/axios'
import api from './libs/api'
import {$check} from './libs/utils'
import * as custom from '@/libs/filters'
import ElementUI from 'element-ui'
import './element-variables.scss'
import directives from './libs/directives'
// import VueQuillEditor from 'vue-quill-editor'
// Vue.use(VueQuillEditor)
Vue.prototype.$http = axios
Vue.prototype.api = api
Vue.prototype.$check = $check // 检测是否合法 复杂可调用模块异步检测

// 全局过滤器
Object.keys(custom).forEach(key => {
  Vue.filter(key, custom[key])
})

Vue.use(ElementUI)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  directives,
  components: { App },
  template: '<App/>'
})
